package com.xln.furns.utils;

import javax.servlet.http.HttpServletRequest;


/**
 * 判断是否是ajax请求
 */
public class WebUtils {


    public static String FURN_IMG_DIRECTORY = "assets/images/product-image";
    public static boolean isAjaxRequest(HttpServletRequest request){

        return "XMLHttpRequest".equals(request.getHeader("X-Requested-With"));

    }

}
